<template>
  <div class="basicInfo">
      <div class="nav">
        <div class="userNum">账号管理</div>
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          @close="handleClose"
          @select = "selectIndex"
          background-color="#E3E6EE"
          text-color="#333333"
          min-height="300px"
          border-color="#FFF"
          active-text-color="#333333">
          <el-menu-item index="1">
            <span slot="title">基本资料</span>
          </el-menu-item>
          <el-menu-item index="2">
            <span slot="title">安全设置</span>
          </el-menu-item>
          <el-menu-item index="3">
            <span slot="title">实名认证</span>
          </el-menu-item>
          <el-menu-item index="4">
            <span slot="title">应用版权</span>
          </el-menu-item>
          <el-menu-item index="5">
            <span slot="title">提交实名认证</span>
          </el-menu-item>
          <el-menu-item index="6">
            <span slot="title">企业实名认证</span>
          </el-menu-item>
          <el-menu-item index="7">
            <span slot="title">未实名认证</span>
          </el-menu-item>
        </el-menu>
      </div>
      <div class="rightContent">
        <user-basic-info v-show="showNav === '1'"></user-basic-info>
        <security-settings v-show="showNav === '2'"></security-settings>
        <user-real-name v-show="showNav === '3'"></user-real-name>
        <application-copyright  v-show="showNav === '4'"></application-copyright>
        <update-real-name  v-show="showNav === '5'"></update-real-name>
        <enterprise-realname  v-show="showNav === '6'"></enterprise-realname>
        <unrealized  v-show="showNav === '7'"></unrealized>
      </div>
  </div>
</template>
<script>
  import userBasicInfo from './components/userBasicInfo'
  import securitySettings from './components/securitySettings'
  import userRealName from './components/userRealName'
  import applicationCopyright from './components/ApplicationCopyright'
  import updateRealName from './components/updateRealName'
  import enterpriseRealname from './components/EnterpriseRealname'
  import unrealized from './components/unrealized'
  import updatePwd from './components/updatePwd'
  export default {
    components: {
      userBasicInfo,
      securitySettings,
      userRealName,
      applicationCopyright,
      updateRealName,
      enterpriseRealname,
      unrealized,
      updatePwd
    },
    data() {
      return {
        showNav: '1'
      }
    },
    methods: {
      selectIndex(key, keyPath) {
        this.showNav = key
      },
      handleOpen(key, keyPath) {
        console.log(key, keyPath)
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath)
      }
    }
  }
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.basicInfo{
  width: 100%;
  height: 100%;
  .nav {
    width: 180px;
    height: 918px;
    background-color:#E3E6EE ;
    float: left;
    .userNum{
      width: 100%;
      height: 60px;
      padding-left: 20px;
      font-size:14px;
      font-family:MicrosoftYaHei-Bold;
      font-weight:bold;
      color:rgba(51,51,51,1);
      line-height:60px;
    }
    /deep/ .el-menu-item {
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      color: #303133;
      padding: 0 20px;
      list-style: none;
      cursor: pointer;
      position: relative;
      -webkit-transition: border-color .3s, background-color .3s, color .3s;
      transition: border-color .3s, background-color .3s, color .3s;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      white-space: nowrap;
    }
    /deep/ .el-menu-item.is-active {
      color: #27B3C7 !important;
      background-color: #fff !important;
      border:1px solid #fff !important;
      padding-left: 20px;
    }
    /deep/ .el-menu {
      border-right: solid 1px #fff;
      list-style: none;
      position: relative;
      margin: 0;
      padding-left: 0;
      background-color: #fff;
    }
  }

}
</style>
